package com.ioftv.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ioftv.entity.ManagerPerformance;

import java.util.List;

/**
 * 项目经理绩效Service
 */
public interface ManagerPerformanceService extends IService<ManagerPerformance> {
    
    /**
     * 获取项目经理绩效排行
     */
    List<ManagerPerformance> getRanking(Integer year, Integer month, Integer limit);
    
    /**
     * 根据用户ID获取项目经理绩效排行
     */
    List<ManagerPerformance> getRankingByUserId(Integer year, Integer month, Integer limit, Long userId);
    
    /**
     * 刷新排名
     */
    boolean refreshRanking(Integer year, Integer month);
    
    /**
     * 根据用户ID刷新排名
     */
    boolean refreshRankingByUserId(Integer year, Integer month, Long userId);
}